//author:kakake
class tsdrugdictDao {
    public data = {
        dbConn: TSLobsterAPI.Program.GetDbConn(),
        WorkId: 1
    }

    constructor(workid: number) {
        this.data.WorkId = workid;
    }

    /**获取药品规格 */
    getdata_spec(state, search, pageInfo) {
        var strsql = "SELECT * FROM DG_CenterSpecDic where IsStop=@state and ChemName like @search";
        var dbparams = {
            state: state,
            search: '%' + search + '%'
        }
        return TSLobsterAPI.DbHelper.DbGetJsonData(this.data.dbConn, strsql, dbparams, pageInfo);
    }
}